package com.jake.spring.transactional.service;

import com.jake.spring.transactional.domain.Employee;

import java.io.IOException;
import java.util.List;

public interface EmployeeService {

    List<Employee> getAll();

    int updateById(Employee employee, Integer empId);

    int updateByIdRuntimeException(Employee employee, Integer empId);

    void updateByIdException(Employee employee, Integer empId) throws IOException;

    Employee getById(int id);

    int updateByIdWithoutTransactional(Employee employee, Integer empId);

    int updateByIdOOM(Employee employee, Integer empId);

    int updateByIdSOF(Employee employee, Integer empId);
}
